function y=neighbor_predict_within(dt)

%neighbor_predict_within internally validated predictions
%

[n,m]=size(dt.nx);
y=zeros(length(dt.y),1);
%[lala,m]=min(sum(dt.predict(i).dy)); %find optimal commitee size
for i=1:n
    di=dt;
    di.nx(i,:)=[];di.y(i,:)=[];
    y(i)=neighbor_predict(di,dt.nx(i,:));
end